<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - ged.info - exception/exception.hpp</title>
  <link rel="stylesheet" type="text/css" href="../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
        <tr>
          <td class="headerItem" width="20%">Current&nbsp;view:</td>
          <td class="headerValue" width="80%" colspan=4><a href="../index.html">directory</a> - <a href="index.html">exception</a> - exception.hpp</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Test:</td>
          <td class="headerValue" width="80%" colspan=4>ged.info</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Date:</td>
          <td class="headerValue" width="20%">2009-06-09</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
          <td class="headerValue" width="20%">63</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Code&nbsp;covered:</td>
          <td class="headerValue" width="20%">0.0 %</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
          <td class="headerValue" width="20%">0</td>
        </tr>
        </table>
      </td>
    </tr>
    <tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td><pre class="source">
<span class="lineNum">       1 </span>                : //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
<span class="lineNum">       2 </span>                : 
<span class="lineNum">       3 </span>                : //Distributed under the Boost Software License, Version 1.0. (See accompanying
<span class="lineNum">       4 </span>                : //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
<span class="lineNum">       5 </span>                : 
<span class="lineNum">       6 </span>                : #ifndef UUID_274DA366004E11DCB1DDFE2E56D89593
<span class="lineNum">       7 </span>                : #define UUID_274DA366004E11DCB1DDFE2E56D89593
<span class="lineNum">       8 </span>                : 
<span class="lineNum">       9 </span>                : namespace
<span class="lineNum">      10 </span>                : boost
<span class="lineNum">      11 </span>                :     {
<span class="lineNum">      12 </span>                :     namespace
<span class="lineNum">      13 </span>                :     exception_detail
<span class="lineNum">      14 </span>                :         {
<span class="lineNum">      15 </span>                :         template &lt;class T&gt;
<span class="lineNum">      16 </span>                :         class
<span class="lineNum">      17 </span>                :         refcount_ptr
<span class="lineNum">      18 </span>                :             {
<span class="lineNum">      19 </span>                :             public:
<span class="lineNum">      20 </span>                : 
<span class="lineNum">      21 </span><span class="lineNoCov">              0 :             refcount_ptr():</span>
<span class="lineNum">      22 </span><span class="lineNoCov">              0 :                 px_(0)</span>
<span class="lineNum">      23 </span>                :                 {
<span class="lineNum">      24 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">      25 </span>                : 
<span class="lineNum">      26 </span><span class="lineNoCov">              0 :             ~refcount_ptr()</span>
<span class="lineNum">      27 </span>                :                 {
<span class="lineNum">      28 </span><span class="lineNoCov">              0 :                 release();</span>
<span class="lineNum">      29 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">      30 </span>                : 
<span class="lineNum">      31 </span><span class="lineNoCov">              0 :             refcount_ptr( refcount_ptr const &amp; x ):</span>
<span class="lineNum">      32 </span><span class="lineNoCov">              0 :                 px_(x.px_)</span>
<span class="lineNum">      33 </span>                :                 {
<span class="lineNum">      34 </span><span class="lineNoCov">              0 :                 add_ref();</span>
<span class="lineNum">      35 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">      36 </span>                : 
<span class="lineNum">      37 </span>                :             refcount_ptr &amp;
<span class="lineNum">      38 </span><span class="lineNoCov">              0 :             operator=( refcount_ptr const &amp; x )</span>
<span class="lineNum">      39 </span>                :                 {
<span class="lineNum">      40 </span><span class="lineNoCov">              0 :                 adopt(x.px_);</span>
<span class="lineNum">      41 </span><span class="lineNoCov">              0 :                 return *this;</span>
<span class="lineNum">      42 </span>                :                 }
<span class="lineNum">      43 </span>                : 
<span class="lineNum">      44 </span>                :             void
<span class="lineNum">      45 </span><span class="lineNoCov">              0 :             adopt( T * px )</span>
<span class="lineNum">      46 </span>                :                 {
<span class="lineNum">      47 </span><span class="lineNoCov">              0 :                 release();</span>
<span class="lineNum">      48 </span><span class="lineNoCov">              0 :                 px_=px;</span>
<span class="lineNum">      49 </span><span class="lineNoCov">              0 :                 add_ref();</span>
<span class="lineNum">      50 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">      51 </span>                : 
<span class="lineNum">      52 </span>                :             T *
<span class="lineNum">      53 </span>                :             get() const
<span class="lineNum">      54 </span>                :                 {
<span class="lineNum">      55 </span>                :                 return px_;
<span class="lineNum">      56 </span>                :                 }
<span class="lineNum">      57 </span>                : 
<span class="lineNum">      58 </span>                :             private:
<span class="lineNum">      59 </span>                : 
<span class="lineNum">      60 </span>                :             T * px_;
<span class="lineNum">      61 </span>                : 
<span class="lineNum">      62 </span>                :             void
<span class="lineNum">      63 </span><span class="lineNoCov">              0 :             add_ref()</span>
<span class="lineNum">      64 </span>                :                 {
<span class="lineNum">      65 </span><span class="lineNoCov">              0 :                 if( px_ )</span>
<span class="lineNum">      66 </span><span class="lineNoCov">              0 :                     px_-&gt;add_ref();</span>
<span class="lineNum">      67 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">      68 </span>                : 
<span class="lineNum">      69 </span>                :             void
<span class="lineNum">      70 </span><span class="lineNoCov">              0 :             release()</span>
<span class="lineNum">      71 </span>                :                 {
<span class="lineNum">      72 </span><span class="lineNoCov">              0 :                 if( px_ )</span>
<span class="lineNum">      73 </span><span class="lineNoCov">              0 :                     px_-&gt;release();</span>
<span class="lineNum">      74 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">      75 </span>                :             };
<span class="lineNum">      76 </span>                :         }
<span class="lineNum">      77 </span>                : 
<span class="lineNum">      78 </span>                :     ////////////////////////////////////////////////////////////////////////
<span class="lineNum">      79 </span>                : 
<span class="lineNum">      80 </span>                :     template &lt;class Tag,class T&gt;
<span class="lineNum">      81 </span>                :     class error_info;
<span class="lineNum">      82 </span>                : 
<span class="lineNum">      83 </span>                :     typedef error_info&lt;struct tag_throw_function,char const *&gt; throw_function;
<span class="lineNum">      84 </span>                :     typedef error_info&lt;struct tag_throw_file,char const *&gt; throw_file;
<span class="lineNum">      85 </span>                :     typedef error_info&lt;struct tag_throw_line,int&gt; throw_line;
<span class="lineNum">      86 </span>                : 
<span class="lineNum">      87 </span>                :     template &lt;&gt;
<span class="lineNum">      88 </span>                :     class
<span class="lineNum">      89 </span>                :     error_info&lt;tag_throw_function,char const *&gt;
<span class="lineNum">      90 </span>                :         {
<span class="lineNum">      91 </span>                :         public:
<span class="lineNum">      92 </span>                :         typedef char const * value_type;
<span class="lineNum">      93 </span>                :         value_type v_;
<span class="lineNum">      94 </span>                :         explicit
<span class="lineNum">      95 </span>                :         error_info( value_type v ):
<span class="lineNum">      96 </span>                :             v_(v)
<span class="lineNum">      97 </span>                :             {
<span class="lineNum">      98 </span>                :             }
<span class="lineNum">      99 </span>                :         };
<span class="lineNum">     100 </span>                : 
<span class="lineNum">     101 </span>                :     template &lt;&gt;
<span class="lineNum">     102 </span>                :     class
<span class="lineNum">     103 </span>                :     error_info&lt;tag_throw_file,char const *&gt;
<span class="lineNum">     104 </span>                :         {
<span class="lineNum">     105 </span>                :         public:
<span class="lineNum">     106 </span>                :         typedef char const * value_type;
<span class="lineNum">     107 </span>                :         value_type v_;
<span class="lineNum">     108 </span>                :         explicit
<span class="lineNum">     109 </span>                :         error_info( value_type v ):
<span class="lineNum">     110 </span>                :             v_(v)
<span class="lineNum">     111 </span>                :             {
<span class="lineNum">     112 </span>                :             }
<span class="lineNum">     113 </span>                :         };
<span class="lineNum">     114 </span>                : 
<span class="lineNum">     115 </span>                :     template &lt;&gt;
<span class="lineNum">     116 </span>                :     class
<span class="lineNum">     117 </span>                :     error_info&lt;tag_throw_line,int&gt;
<span class="lineNum">     118 </span>                :         {
<span class="lineNum">     119 </span>                :         public:
<span class="lineNum">     120 </span>                :         typedef int value_type;
<span class="lineNum">     121 </span>                :         value_type v_;
<span class="lineNum">     122 </span>                :         explicit
<span class="lineNum">     123 </span>                :         error_info( value_type v ):
<span class="lineNum">     124 </span>                :             v_(v)
<span class="lineNum">     125 </span>                :             {
<span class="lineNum">     126 </span>                :             }
<span class="lineNum">     127 </span>                :         };
<span class="lineNum">     128 </span>                : 
<span class="lineNum">     129 </span>                :     template &lt;class E,class Tag,class T&gt;
<span class="lineNum">     130 </span>                :     E const &amp; operator&lt;&lt;( E const &amp;, error_info&lt;Tag,T&gt; const &amp; );
<span class="lineNum">     131 </span>                : 
<span class="lineNum">     132 </span>                :     class exception;
<span class="lineNum">     133 </span>                : 
<span class="lineNum">     134 </span>                :     template &lt;class&gt;
<span class="lineNum">     135 </span>                :     class shared_ptr;
<span class="lineNum">     136 </span>                : 
<span class="lineNum">     137 </span>                :     namespace
<span class="lineNum">     138 </span>                :     exception_detail
<span class="lineNum">     139 </span>                :         {
<span class="lineNum">     140 </span>                :         class error_info_base;
<span class="lineNum">     141 </span>                :         struct type_info_;
<span class="lineNum">     142 </span>                : 
<span class="lineNum">     143 </span>                :         struct
<span class="lineNum">     144 </span>                :         error_info_container
<span class="lineNum">     145 </span>                :             {
<span class="lineNum">     146 </span>                :             virtual char const * diagnostic_information() const = 0;
<span class="lineNum">     147 </span>                :             virtual shared_ptr&lt;error_info_base const&gt; get( type_info_ const &amp; ) const = 0;
<span class="lineNum">     148 </span>                :             virtual void set( shared_ptr&lt;error_info_base const&gt; const &amp;, type_info_ const &amp; ) = 0;
<span class="lineNum">     149 </span>                :             virtual void add_ref() const = 0;
<span class="lineNum">     150 </span>                :             virtual void release() const = 0;
<span class="lineNum">     151 </span>                : 
<span class="lineNum">     152 </span>                :             protected:
<span class="lineNum">     153 </span>                : 
<span class="lineNum">     154 </span>                :             virtual
<span class="lineNum">     155 </span>                :             ~error_info_container() throw()
<span class="lineNum">     156 </span>                :                 {
<span class="lineNum">     157 </span>                :                 }
<span class="lineNum">     158 </span>                :             };
<span class="lineNum">     159 </span>                : 
<span class="lineNum">     160 </span>                :         template &lt;class&gt;
<span class="lineNum">     161 </span>                :         struct get_info;
<span class="lineNum">     162 </span>                : 
<span class="lineNum">     163 </span>                :         template &lt;&gt;
<span class="lineNum">     164 </span>                :         struct get_info&lt;throw_function&gt;;
<span class="lineNum">     165 </span>                : 
<span class="lineNum">     166 </span>                :         template &lt;&gt;
<span class="lineNum">     167 </span>                :         struct get_info&lt;throw_file&gt;;
<span class="lineNum">     168 </span>                : 
<span class="lineNum">     169 </span>                :         template &lt;&gt;
<span class="lineNum">     170 </span>                :         struct get_info&lt;throw_line&gt;;
<span class="lineNum">     171 </span>                : 
<span class="lineNum">     172 </span>                :         char const * get_diagnostic_information( exception const &amp; );
<span class="lineNum">     173 </span>                :         }
<span class="lineNum">     174 </span>                : 
<span class="lineNum">     175 </span>                :     class
<span class="lineNum">     176 </span>                :     exception
<span class="lineNum">     177 </span><span class="lineNoCov">              0 :         {</span>
<span class="lineNum">     178 </span>                :         protected:
<span class="lineNum">     179 </span>                : 
<span class="lineNum">     180 </span><span class="lineNoCov">              0 :         exception():</span>
<span class="lineNum">     181 </span>                :             throw_function_(0),
<span class="lineNum">     182 </span>                :             throw_file_(0),
<span class="lineNum">     183 </span><span class="lineNoCov">              0 :             throw_line_(-1)</span>
<span class="lineNum">     184 </span>                :             {
<span class="lineNum">     185 </span><span class="lineNoCov">              0 :             }</span>
<span class="lineNum">     186 </span>                : 
<span class="lineNum">     187 </span>                : #ifdef __HP_aCC
<span class="lineNum">     188 </span>                :         //On HP aCC, this protected copy constructor prevents throwing boost::exception.
<span class="lineNum">     189 </span>                :         //On all other platforms, the same effect is achieved by the pure virtual destructor.
<span class="lineNum">     190 </span>                :         exception( exception const &amp; x ) throw():
<span class="lineNum">     191 </span>                :             data_(x.data_),
<span class="lineNum">     192 </span>                :             throw_function_(x.throw_function_),
<span class="lineNum">     193 </span>                :             throw_file_(x.throw_file_),
<span class="lineNum">     194 </span>                :             throw_line_(x.throw_line_)
<span class="lineNum">     195 </span>                :             {
<span class="lineNum">     196 </span>                :             }
<span class="lineNum">     197 </span>                : #endif
<span class="lineNum">     198 </span>                : 
<span class="lineNum">     199 </span>                :         virtual ~exception() throw()
<span class="lineNum">     200 </span>                : #ifndef __HP_aCC
<span class="lineNum">     201 </span>                :             = 0 //Workaround for HP aCC, =0 incorrectly leads to link errors.
<span class="lineNum">     202 </span>                : #endif
<span class="lineNum">     203 </span>                :             ;
<span class="lineNum">     204 </span>                : 
<span class="lineNum">     205 </span>                :         private:
<span class="lineNum">     206 </span>                : 
<span class="lineNum">     207 </span>                :         template &lt;class E&gt;
<span class="lineNum">     208 </span>                :         friend
<span class="lineNum">     209 </span>                :         E const &amp;
<span class="lineNum">     210 </span>                :         operator&lt;&lt;( E const &amp; x, throw_function const &amp; y )
<span class="lineNum">     211 </span>                :             {
<span class="lineNum">     212 </span>                :             x.throw_function_=y.v_;
<span class="lineNum">     213 </span>                :             return x;
<span class="lineNum">     214 </span>                :             }
<span class="lineNum">     215 </span>                : 
<span class="lineNum">     216 </span>                :         template &lt;class E&gt;
<span class="lineNum">     217 </span>                :         friend
<span class="lineNum">     218 </span>                :         E const &amp;
<span class="lineNum">     219 </span>                :         operator&lt;&lt;( E const &amp; x, throw_file const &amp; y )
<span class="lineNum">     220 </span>                :             {
<span class="lineNum">     221 </span>                :             x.throw_file_=y.v_;
<span class="lineNum">     222 </span>                :             return x;
<span class="lineNum">     223 </span>                :             }
<span class="lineNum">     224 </span>                : 
<span class="lineNum">     225 </span>                :         template &lt;class E&gt;
<span class="lineNum">     226 </span>                :         friend
<span class="lineNum">     227 </span>                :         E const &amp;
<span class="lineNum">     228 </span>                :         operator&lt;&lt;( E const &amp; x, throw_line const &amp; y )
<span class="lineNum">     229 </span>                :             {
<span class="lineNum">     230 </span>                :             x.throw_line_=y.v_;
<span class="lineNum">     231 </span>                :             return x;
<span class="lineNum">     232 </span>                :             }
<span class="lineNum">     233 </span>                : 
<span class="lineNum">     234 </span>                :         friend char const * exception_detail::get_diagnostic_information( exception const &amp; );
<span class="lineNum">     235 </span>                : 
<span class="lineNum">     236 </span>                :         template &lt;class E,class Tag,class T&gt;
<span class="lineNum">     237 </span>                :         friend E const &amp; operator&lt;&lt;( E const &amp;, error_info&lt;Tag,T&gt; const &amp; );
<span class="lineNum">     238 </span>                : 
<span class="lineNum">     239 </span>                :         template &lt;class&gt;
<span class="lineNum">     240 </span>                :         friend struct exception_detail::get_info;
<span class="lineNum">     241 </span>                :         friend struct exception_detail::get_info&lt;throw_function&gt;;
<span class="lineNum">     242 </span>                :         friend struct exception_detail::get_info&lt;throw_file&gt;;
<span class="lineNum">     243 </span>                :         friend struct exception_detail::get_info&lt;throw_line&gt;;
<span class="lineNum">     244 </span>                : 
<span class="lineNum">     245 </span>                :         mutable exception_detail::refcount_ptr&lt;exception_detail::error_info_container&gt; data_;
<span class="lineNum">     246 </span>                :         mutable char const * throw_function_;
<span class="lineNum">     247 </span>                :         mutable char const * throw_file_;
<span class="lineNum">     248 </span>                :         mutable int throw_line_;
<span class="lineNum">     249 </span>                :         };
<span class="lineNum">     250 </span>                : 
<span class="lineNum">     251 </span>                :     inline
<span class="lineNum">     252 </span>                :     exception::
<span class="lineNum">     253 </span><span class="lineNoCov">              0 :     ~exception() throw()</span>
<span class="lineNum">     254 </span>                :         {
<span class="lineNum">     255 </span><span class="lineNoCov">              0 :         }</span>
<span class="lineNum">     256 </span>                : 
<span class="lineNum">     257 </span>                :     ////////////////////////////////////////////////////////////////////////
<span class="lineNum">     258 </span>                : 
<span class="lineNum">     259 </span>                :     namespace
<span class="lineNum">     260 </span>                :     exception_detail
<span class="lineNum">     261 </span>                :         {
<span class="lineNum">     262 </span>                :         template &lt;class T&gt;
<span class="lineNum">     263 </span>                :         struct
<span class="lineNum">     264 </span>                :         error_info_injector:
<span class="lineNum">     265 </span>                :             public T,
<span class="lineNum">     266 </span>                :             public exception
<span class="lineNum">     267 </span><span class="lineNoCov">              0 :             {</span>
<span class="lineNum">     268 </span>                :             explicit
<span class="lineNum">     269 </span><span class="lineNoCov">              0 :             error_info_injector( T const &amp; x ):</span>
<span class="lineNum">     270 </span><span class="lineNoCov">              0 :                 T(x)</span>
<span class="lineNum">     271 </span><span class="lineNoCov">              0 :                 {</span>
<span class="lineNum">     272 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">     273 </span>                : 
<span class="lineNum">     274 </span><span class="lineNoCov">              0 :             ~error_info_injector() throw()</span>
<span class="lineNum">     275 </span><span class="lineNoCov">              0 :                 {</span>
<span class="lineNum">     276 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">     277 </span>                :             };
<span class="lineNum">     278 </span>                : 
<span class="lineNum">     279 </span>                :         struct large_size { char c[256]; };
<span class="lineNum">     280 </span>                :         large_size dispatch( exception * );
<span class="lineNum">     281 </span>                : 
<span class="lineNum">     282 </span>                :         struct small_size { };
<span class="lineNum">     283 </span>                :         small_size dispatch( void * );
<span class="lineNum">     284 </span>                : 
<span class="lineNum">     285 </span>                :         template &lt;class,int&gt;
<span class="lineNum">     286 </span>                :         struct enable_error_info_helper;
<span class="lineNum">     287 </span>                : 
<span class="lineNum">     288 </span>                :         template &lt;class T&gt;
<span class="lineNum">     289 </span>                :         struct
<span class="lineNum">     290 </span>                :         enable_error_info_helper&lt;T,sizeof(large_size)&gt;
<span class="lineNum">     291 </span>                :             {
<span class="lineNum">     292 </span>                :             typedef T type;
<span class="lineNum">     293 </span>                :             };
<span class="lineNum">     294 </span>                : 
<span class="lineNum">     295 </span>                :         template &lt;class T&gt;
<span class="lineNum">     296 </span>                :         struct
<span class="lineNum">     297 </span>                :         enable_error_info_helper&lt;T,sizeof(small_size)&gt;
<span class="lineNum">     298 </span>                :             {
<span class="lineNum">     299 </span>                :             typedef error_info_injector&lt;T&gt; type;
<span class="lineNum">     300 </span>                :             };
<span class="lineNum">     301 </span>                : 
<span class="lineNum">     302 </span>                :         template &lt;class T&gt;
<span class="lineNum">     303 </span>                :         struct
<span class="lineNum">     304 </span>                :         enable_error_info_return_type
<span class="lineNum">     305 </span>                :             {
<span class="lineNum">     306 </span>                :             typedef typename enable_error_info_helper&lt;T,sizeof(dispatch((T*)0))&gt;::type type;
<span class="lineNum">     307 </span>                :             };
<span class="lineNum">     308 </span>                :         }
<span class="lineNum">     309 </span>                : 
<span class="lineNum">     310 </span>                :     template &lt;class T&gt;
<span class="lineNum">     311 </span>                :     inline
<span class="lineNum">     312 </span>                :     typename
<span class="lineNum">     313 </span>                :     exception_detail::enable_error_info_return_type&lt;T&gt;::type
<span class="lineNum">     314 </span><span class="lineNoCov">              0 :     enable_error_info( T const &amp; x )</span>
<span class="lineNum">     315 </span>                :         {
<span class="lineNum">     316 </span>                :         typedef typename exception_detail::enable_error_info_return_type&lt;T&gt;::type rt;
<span class="lineNum">     317 </span><span class="lineNoCov">              0 :         return rt(x);</span>
<span class="lineNum">     318 </span>                :         }
<span class="lineNum">     319 </span>                : 
<span class="lineNum">     320 </span>                :     ////////////////////////////////////////////////////////////////////////
<span class="lineNum">     321 </span>                : 
<span class="lineNum">     322 </span>                :     namespace
<span class="lineNum">     323 </span>                :     exception_detail
<span class="lineNum">     324 </span>                :         {
<span class="lineNum">     325 </span>                :         class
<span class="lineNum">     326 </span>                :         clone_base
<span class="lineNum">     327 </span><span class="lineNoCov">              0 :             {</span>
<span class="lineNum">     328 </span>                :             public:
<span class="lineNum">     329 </span>                : 
<span class="lineNum">     330 </span>                :             virtual clone_base const * clone() const = 0;
<span class="lineNum">     331 </span>                :             virtual void rethrow() const = 0;
<span class="lineNum">     332 </span>                : 
<span class="lineNum">     333 </span>                :             virtual
<span class="lineNum">     334 </span><span class="lineNoCov">              0 :             ~clone_base() throw()</span>
<span class="lineNum">     335 </span><span class="lineNoCov">              0 :                 {</span>
<span class="lineNum">     336 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">     337 </span>                :             };
<span class="lineNum">     338 </span>                : 
<span class="lineNum">     339 </span>                :         inline
<span class="lineNum">     340 </span>                :         void
<span class="lineNum">     341 </span><span class="lineNoCov">              0 :         copy_boost_exception( exception * a, exception const * b )</span>
<span class="lineNum">     342 </span>                :             {
<span class="lineNum">     343 </span><span class="lineNoCov">              0 :             *a = *b;</span>
<span class="lineNum">     344 </span><span class="lineNoCov">              0 :             }</span>
<span class="lineNum">     345 </span>                : 
<span class="lineNum">     346 </span>                :         inline
<span class="lineNum">     347 </span>                :         void
<span class="lineNum">     348 </span>                :         copy_boost_exception( void *, void const * )
<span class="lineNum">     349 </span>                :             {
<span class="lineNum">     350 </span>                :             }
<span class="lineNum">     351 </span>                : 
<span class="lineNum">     352 </span>                :         template &lt;class T&gt;
<span class="lineNum">     353 </span>                :         class
<span class="lineNum">     354 </span>                :         clone_impl:
<span class="lineNum">     355 </span>                :             public T,
<span class="lineNum">     356 </span>                :             public clone_base
<span class="lineNum">     357 </span><span class="lineNoCov">              0 :             {</span>
<span class="lineNum">     358 </span>                :             public:
<span class="lineNum">     359 </span>                : 
<span class="lineNum">     360 </span>                :             explicit
<span class="lineNum">     361 </span><span class="lineNoCov">              0 :             clone_impl( T const &amp; x ):</span>
<span class="lineNum">     362 </span><span class="lineNoCov">              0 :                 T(x)</span>
<span class="lineNum">     363 </span>                :                 {
<span class="lineNum">     364 </span><span class="lineNoCov">              0 :                 copy_boost_exception(this,&amp;x);</span>
<span class="lineNum">     365 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">     366 </span>                : 
<span class="lineNum">     367 </span><span class="lineNoCov">              0 :             ~clone_impl() throw()</span>
<span class="lineNum">     368 </span><span class="lineNoCov">              0 :                 {</span>
<span class="lineNum">     369 </span><span class="lineNoCov">              0 :                 }</span>
<span class="lineNum">     370 </span>                : 
<span class="lineNum">     371 </span>                :             private:
<span class="lineNum">     372 </span>                : 
<span class="lineNum">     373 </span>                :             clone_base const *
<span class="lineNum">     374 </span><span class="lineNoCov">              0 :             clone() const</span>
<span class="lineNum">     375 </span>                :                 {
<span class="lineNum">     376 </span><span class="lineNoCov">              0 :                 return new clone_impl(*this);</span>
<span class="lineNum">     377 </span>                :                 }
<span class="lineNum">     378 </span>                : 
<span class="lineNum">     379 </span>                :             void
<span class="lineNum">     380 </span><span class="lineNoCov">              0 :             rethrow() const</span>
<span class="lineNum">     381 </span>                :                 {
<span class="lineNum">     382 </span><span class="lineNoCov">              0 :                 throw*this;</span>
<span class="lineNum">     383 </span>                :                 }
<span class="lineNum">     384 </span>                :             };
<span class="lineNum">     385 </span>                :         }
<span class="lineNum">     386 </span>                : 
<span class="lineNum">     387 </span>                :     template &lt;class T&gt;
<span class="lineNum">     388 </span>                :     inline
<span class="lineNum">     389 </span>                :     exception_detail::clone_impl&lt;T&gt;
<span class="lineNum">     390 </span><span class="lineNoCov">              0 :     enable_current_exception( T const &amp; x )</span>
<span class="lineNum">     391 </span>                :         {
<span class="lineNum">     392 </span><span class="lineNoCov">              0 :         return exception_detail::clone_impl&lt;T&gt;(x);</span>
<span class="lineNum">     393 </span>                :         }
<span class="lineNum">     394 </span>                :     }
<span class="lineNum">     395 </span>                : 
<span class="lineNum">     396 </span>                : #endif
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
  <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
  </table>
  <br>

</body>
</html>
